<template>
    <div class="block">
        <el-date-picker
                v-model="value1"
                type="datetimerange"
                range-separator="至"
                start-placeholder="数据开始日期"
                end-placeholder="数据结束日期" style="width: 350px" @blur="sendMsg">
        </el-date-picker>
    </div>
</template>

<script>
    export default {
        name: "timerSelect",
        data(){
            return{
                value1: '',
            }
        },
        mounted() {
            this.sendMsg()
        },
        methods:{
            sendMsg(){
                this.$emit('func',this.value1)
            }
        }
    }
</script>

<style scoped lang="less">
    .block{
        display: flex;
        justify-content: center;
    }
</style>
